package com.bci.pwtz.service;

import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.exception.VerifyCodeIsBusyException;
import com.bci.pwtz.exception.VisitCountIsOverTheLimitException;

/**
 * 栏目服务 <br/>
 * <p>Description:<br/>
 *    <p>TODO 详细描述
 *
 * <p>For Examples <br/>
 * <PRE>
 * </PRE>
 * <p>
 */
public interface VerifyCodeService
{
    /**
     * 
      * 获取验证码 <br/>
     * <p>Description: TODO(详细描述)
     * <br/>
     * <p>Author: tonic<br/>
     * <p>Date: 2014-9-16-下午2:15:15<br/>
     * <p>
     * @param pid
     * @param pageSize
     * @param pageNo
     * @return
     * @throws PwtzDatabaseException   
     * @throws VerifyCodeIsBusyException 
     * @throws VisitCountIsOverTheLimitException 
     *
     */
    String getCode(String mobile,int type) throws PwtzDatabaseException, VerifyCodeIsBusyException, VisitCountIsOverTheLimitException;

    /**
     * 一句话描述 <br/>
     * <p>Description: TODO(详细描述) 
     * <br/>
     * <p>Author: tonic<br/>
     * <p>Date: 2014-9-25-下午3:34:01<br/>
     * <p>
     * @param mobile
     * @param code
     * @return
     * @throws PwtzDatabaseException   
     * 
     */
    int validateCode(String mobile, String code) throws PwtzDatabaseException;

    
}
